import React from "react";
import TaskList from "pages/home/taskList";
import "./index.scss";
import { NavBar } from "antd-mobile";
import { historyShape, storeShape } from "src/propType";

function Message(props) {
    const { store, history } = props;
    return (
        <div className="message-container">
            <NavBar onBack={() => props.history.go(-1)}>消息通知</NavBar>
            <TaskList store={store} history={history} />
        </div>
    );
}

Message.propTypes = {
    store: storeShape,
    history: historyShape,
};

export default Message;
